class AddTwoNumbers:
    def __init__(self, a, b):
        self.a = a
        self.b = b

    def add(self):
        return self.a + self.b

def eat():
    print("eat")

instance = AddTwoNumbers(1, 2)
x = input("name")
instance.__setattr__(x, 10)
instance.__setattr__("eat", eat)
res = instance.__getattribute__(x)
e = instance.__getattribute__("eat")
e()
print(res)

print(dir(instance))